package com.cennavi.bigdata.baotou.service;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by cennavi on 2018/4/11.
 */
public interface CrontabService {

    void  insertRoadIndexTravelInfo() throws Exception;

    //删除数据（只保留3个月的）
    void deleteHistoryInfo();

    //从oracle将数据导入pg
    String inserPgFromOracle(String start , String end );

    /**
     * 将整合的数据保存到pg数据库中
     * @param jsonObject
     */
    void saveDayIndexFromOracleToPg(JSONObject jsonObject);

    void saveHourIndexFromOracleToPg(JSONObject jsonObject);

    void saveQuarter();

    void deleteRoadPredictHis();

}
